#include "SubJect.h"
#include "ConCreteServer.h"
int main(int argc, char *argv[])
{
    auto  subject = std::make_shared<SubJect>();
    auto  observer = std::make_shared<ConCreteServer>();
    subject->attach(observer);
    subject->notify();

    subject->detach(observer);
    subject->notify();
    return 0;
}
